import web
urls = (
  '/', 'index'
)
app = web.application(urls, globals())
application = app.wsgifunc()

class index:
    def GET(self):
        return "Hello, world!"
    
'''
import MySQLdb
import sys
import string
def application(environ, start_response):
#     conn = MySQLdb.connect(host='10.4.3.92',port=3306, user='uulJZ5jL5gPvg',passwd='pyqLTGrCv6uoX',db='dff52533cad264042821931214c2987cc')
#     cursor = conn.cursor()
#     cursor.execute("""create table IF NOT EXISTS test (task_id int(10) unsigned NOT NULL AUTO_INCREMENT,phone varchar(128) DEFAULT NULL,PRIMARY KEY (task_id)) """)
    
    status = '200 OK'
    response_headers = [('Content-type','text/plain')]
    start_response(status, response_headers)
    outStr = string.join(dir(sys.modules), ',')
    
    return [outStr]
'''